<?php
	$path_one = 'admin/admin_system';
	$path_two = 'admin/admin_module';
	$filename = 'admin/admin_admin_group';
	require_once("header.php");
	require_once("admin_comm.php");
	require_once $_site->get_handlepath('admin');

	$result=admin_fun_find_group_list(array('limit'=>true),1,10);



?>
<script type="text/javascript" charset="utf-8">

	loader.file({
		plugin:['validform/main','dialog/main'],
		js:['city_area', 'html'],
		skincss:['list']
	});
	$(document).ready(function(){

	});

</script>
</head>
<body>
	<div class="position_nav">你所在的当前位置：<?php echo $path_str;?></div>
		<div class="main">
			<div class="sos_box">
				<input type="button" onclick='window.location.href="/admin/admin_group_edit"' value="添加角色组" class="button1">
			</div>
			<table cellpadding="0" cellspacing="1" border="0" class="table">
				<tr>
					<th align="center">用户id号</th>
					<th align="left">权限组名称</th>
					<th align="center">操作</th>
				</tr>
				<?php
					if($result['rows']){
						foreach ($result['rows'] as $v){
							?>
							<tr>
								<td align="center"><?php echo $v['id'] ;?></td>
								<td align="left"><?php echo $v['content'] ;?></td>
								<td align="center" class="set_text">
									<a href="/admin/admin_group_edit?id=<?php echo $v['id'] ;?>">修改</a>								</td>
					</tr>
							<?php
						}
					}else{
						?>
						<tr>
							<td colspan="9">暂无数据！</td>
						</tr>
						<?php
					}
				?>
				<tr>
					<td colspan="9">
						<div class="list_more">
							用户总数：<?php echo $result['row_count']?$result['row_count']:0 ;?>
							<?php
								echo page_method($result['row_count'], $page, $result['page_count'], 10, '?'.preg_replace('/(&page=\d*)/','',$_SERVER['QUERY_STRING']), false);
							?>
						</div>
					</td>
				</tr>
			</table>
		</div>
	</div>
</body>
</html>


